Skip to content

Remove arbitrary sleeps from shutdown handling - #220

Merged
firecow merged 1 commit into
mainfrom
remove-shutdown-sleeps
Mar 1, 2026
Merged

Remove arbitrary sleeps from shutdown handling#220
firecow merged 1 commit into
mainfrom
remove-shutdown-sleeps

Conversation

@firecow

@firecow firecow commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace king's 1s time.Sleep with event-driven QUIC drain wait (5s timeout safety net)
  • Remove ling's 750ms time.Sleep entirely — no purpose after sync completes
  • Add unit tests for drain wait behavior

Test plan

  • Unit tests pass (go test ./...)
  • Integration tests pass (go test -tags=integration ./test/integration/...)
  • Zero-downtime redeployment verified (0 failed requests across all scenarios)

Closes #16

@firecow firecow self-assigned this Mar 1, 2026
Replace king's 1s sleep with event-driven QUIC drain wait that returns
as soon as all lings disconnect (with 5s timeout as safety net).
Remove ling's 750ms sleep entirely since it serves no purpose.

Closes #16
@firecow
firecow force-pushed the remove-shutdown-sleeps branch from b8a2659 to 8990e88 Compare March 1, 2026 18:59
@firecow
firecow merged commit 4c1a607 into main Mar 1, 2026
7 checks passed
@firecow
firecow deleted the remove-shutdown-sleeps branch March 1, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No arbitrary sleep's

1 participant